package com.kerrykidz.scminvoicing.dao.model;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

import com.kerrykidz.workflow.vo.WorkflowVo;
import com.rdp.framework.core.model.MyBatisSuperModel;
import com.rdp.framework.exception.RDPException;
import com.rdp.util.time.DateFormatUtil;

public class ScmPrdPriceEntity    extends MyBatisSuperModel implements Serializable  {
    /** 
	* 
	 */ 
	private static final long serialVersionUID = 1L;
	private String pkPriceId;
    private String fkPrdId;
    private String fkFlowinstId;
    private String status;
    private BigDecimal branchPrice;
    private Date validFrom;
    private Date validTo;
    private String fkBranId;
    private String modiBy;
    private Date modiTime;
    private String applyBy;
    private Date 	applyTime;
    private WorkflowVo workflowVo;//流程相关数据
    //业务扩展字段
    private String  prdName;
    private String pkPrdId;
    private String  prdSpec;
    private String unitName;
    private  Double headPrice;//总部
    private Double marketPrice;//市场价格
    private  String  isAllow;
    private String comments;//备注
    private String cateId;//商品分类的id
    private String  cateName;
    private String userName;
    private String branName;
    private List<GblScmPrdCateEntity> cateList;//商品分类集合
    
    
    public List<GblScmPrdCateEntity> getCateList() {
		return cateList;
	}

	public void setCateList(List<GblScmPrdCateEntity> cateList) {
		this.cateList = cateList;
	}

	public WorkflowVo getWorkflowVo() {
		return workflowVo;
	}

	public void setWorkflowVo(WorkflowVo workflowVo) {
		this.workflowVo = workflowVo;
	}

	//获取价格申请时间
    public String getOrderTime() throws RDPException{
    	if(this.getApplyTime()!=null){
    		return DateFormatUtil.convertDateToStr(this.getApplyTime(), "yyyy-MM-dd");
    	}
    	return "";
    }
    
    public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	public String getBranName() {
		return branName;
	}
	public void setBranName(String branName) {
		this.branName = branName;
	}
	public String getPkPriceId() {
		return pkPriceId;
	}
	public void setPkPriceId(String pkPriceId) {
		this.pkPriceId = pkPriceId;
	}
	public String getCateName() {
		return cateName;
	}
	public void setCateName(String cateName) {
		this.cateName = cateName;
	}
	public String getApplyBy() {
		return applyBy;
	}
	public void setApplyBy(String applyBy) {
		this.applyBy = applyBy;
	}
	public Date getApplyTime() {
		return applyTime;
	}
	public void setApplyTime(Date applyTime) {
		this.applyTime = applyTime;
	}
	public Double getMarketPrice() {
		return marketPrice;
	}
	public void setMarketPrice(Double marketPrice) {
		this.marketPrice = marketPrice;
	}
	public String getCateId() {
		return cateId;
	}
	public void setCateId(String cateId) {
		this.cateId = cateId;
	}
	public String getPkPrdId() {
		return pkPrdId;
	}
	public void setPkPrdId(String pkPrdId) {
		this.pkPrdId = pkPrdId;
	}
	public String getIsAllow() {
		return isAllow;
	}
	public void setIsAllow(String isAllow) {
		this.isAllow = isAllow;
	}
	public String getComments() {
		return comments;
	}
	public void setComments(String comments) {
		this.comments = comments;
	}
	public String getPrdName() {
		return prdName;
	}
	public void setPrdName(String prdName) {
		this.prdName = prdName;
	}


	public String getPrdSpec() {
		return prdSpec;
	}


	public void setPrdSpec(String prdSpec) {
		this.prdSpec = prdSpec;
	}


	public String getUnitName() {
		return unitName;
	}


	public void setUnitName(String unitName) {
		this.unitName = unitName;
	}


	public Double getHeadPrice() {
		return headPrice;
	}


	public void setHeadPrice(Double headPrice) {
		this.headPrice = headPrice;
	}


	public String getFkPrdId() {
        return fkPrdId;
    }

    
    public void setFkPrdId(String fkPrdId) {
        this.fkPrdId = fkPrdId;
    }

    
    public String getFkFlowinstId() {
        return fkFlowinstId;
    }

    
    public void setFkFlowinstId(String fkFlowinstId) {
        this.fkFlowinstId = fkFlowinstId;
    }

    
    public String getStatus() {
        return status;
    }

    
    public void setStatus(String status) {
        this.status = status;
    }

    
    public BigDecimal getBranchPrice() {
        return branchPrice;
    }

    
    public void setBranchPrice(BigDecimal branchPrice) {
        this.branchPrice = branchPrice;
    }

    
    public Date getValidFrom() {
        return validFrom;
    }

    
    public void setValidFrom(Date validFrom) {
        this.validFrom = validFrom;
    }

    
    public Date getValidTo() {
        return validTo;
    }

    
    public void setValidTo(Date validTo) {
        this.validTo = validTo;
    }

    
    public String getFkBranId() {
        return fkBranId;
    }

    
    public void setFkBranId(String fkBranId) {
        this.fkBranId = fkBranId;
    }

    
    public String getModiBy() {
        return modiBy;
    }

    
    public void setModiBy(String modiBy) {
        this.modiBy = modiBy;
    }

    
    public Date getModiTime() {
        return modiTime;
    }
    
    public void setModiTime(Date modiTime) {
        this.modiTime = modiTime;
    }
}